//
//  MyConnection.h
//  ConnectionModel
//
//  Created by 蒋杏飞 on 15/4/6.
//  Copyright (c) 2015年 蒋杏飞. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define Login @"http://hunliji.com/v1/api/app/products.json"


@interface MyConnection : NSObject<NSURLConnectionDataDelegate, NSURLConnectionDelegate, UIAlertViewDelegate>

@property (nonatomic, copy) NSString *requestUrl;

@property (nonatomic, retain) NSMutableData *receiveData;
@property (nonatomic, copy) void(^finishBlock)(NSData *data);

+ (void)connectWithUrl:(NSString *)urlStr parmaters:(NSDictionary *)parmaters finishBlock:(void(^)(NSData *data))block;

- (void)startWithUrl:(NSString *)urlStr parmaters:(NSDictionary *)parmaters;


@end





